﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using GS1.Library;

namespace SegIdenMovilBT
{
    public partial class frmProductoImagen : Form
    {
        #region --- Variables y Propiedades ---
        public Image imagenProducto
        {
            set { this.picFoto.Image = value; }
        }
        #endregion

        #region --- Constructor ---
        public frmProductoImagen()
        {
            InitializeComponent();
        }
        #endregion

        #region --- Eventos Formulario ---
        private void frmProductoImagen_Load(object sender, EventArgs e)
        {
            cargarFormulario();
        }

        private void btnRegresar_Click(object sender, EventArgs e)
        {
            salir();
        }

        private void btnRegresar_Click_1(object sender, EventArgs e)
        {
            salir();
        }
        #endregion

        #region --- Metodos Propios ---

        private void cargarFormulario()
        {
            try
            {
                Cursor.Current = Cursors.WaitCursor;
                this.WindowState = FormWindowState.Maximized;
                Cursor.Current = Cursors.Default;
            }
            catch (Exception ex)
            {
                Util.MensajeError(ex, this.Text);
            }
            finally
            {
                Cursor.Current = Cursors.Default;
            }
        }
        private void salir()
        {
            this.DialogResult = DialogResult.OK;
        }
        #endregion
    }
}